Skip to main content

Explanation

Overview​

The Cascade Configuration Service provides a simple interface for selecting a suitable model cascade configuration based on user-defined requirements.

Users provide cost and error constraints, and the service returns a corresponding configuration from a predefined policy table. The interface also provides a visual representation of the selected configuration.

This repository contains the service implementation, configuration data, and supporting utilities required to run the application.

Repository Structure​

Cascade-Configuration-Service/
├── .github/
│ └── workflows/
│ └── deploy.yaml
├── data/
│ └── policy_table.csv
├── src/
│ └── cascade_configuration_service/
│ ├── __init__.py
│ ├── app.py
│ └── dysci/
│ ├── __init__.py
│ ├── data_loader.py
│ ├── model_utils.py
│ ├── selector.py
│ └── visualization.py
├── .dockerignore
├── component-info.yaml
├── entrypoint.sh
├── icicle-service.yaml
├── pyproject.toml
├── uv.lock
├── README.md
└── .gitignore

Main Components​

  • app.py — provides the Streamlit user interface.
  • data_loader.py — loads the policy configuration data.
  • selector.py — handles configuration selection.
  • model_utils.py — provides model-related utility functions.
  • visualization.py — provides visualization utilities.
  • policy_table.csv — contains the configurations used by the service.

ICICLE CI/CD Deployment​

The repository uses the ICICLE CI/CD workflow for building and deploying the service.

The main deployment-related files are:

  • .github/workflows/deploy.yaml — defines the GitHub Actions deployment workflow.
  • icicle-service.yaml — contains the ICICLE service deployment configuration.
  • entrypoint.sh — defines how the application is started.
  • pyproject.toml — defines the Python project and its dependencies.
  • uv.lock — provides reproducible dependency versions.

Changes pushed to the main branch trigger the configured ICICLE CI/CD workflow.